package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffAreaInfoDao;
import io.wdb.modules.generator.generator.entity.StaffAreaInfoEntity;
import io.wdb.modules.generator.generator.service.StaffAreaInfoService;



@Service("staffAreaInfoService")
public class StaffAreaInfoServiceImpl implements StaffAreaInfoService {
	@Autowired
	private StaffAreaInfoDao staffAreaInfoDao;
	
	@Override
	public StaffAreaInfoEntity queryObject(Long id){
		return staffAreaInfoDao.queryObject(id);
	}
	
	@Override
	public List<StaffAreaInfoEntity> queryList(Map<String, Object> map){
		return staffAreaInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffAreaInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffAreaInfoEntity staffAreaInfo){
		staffAreaInfoDao.save(staffAreaInfo);
	}
	
	@Override
	public void update(StaffAreaInfoEntity staffAreaInfo){
		staffAreaInfoDao.update(staffAreaInfo);
	}
	
	@Override
	public void delete(Long id){
		staffAreaInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffAreaInfoDao.deleteBatch(ids);
	}
	
}
